import java.util.Scanner;

public class demo3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
       int i=1;
       int j=0;
       while (i<=5){
           System.out.println("请输入第"+i+"个成绩");
           int score= sc.nextInt();
           if (score>=0&&score<=100)
               j+=score;
           else
               System.out.println("输入有误");
               i++;
       }
        System.out.println("成绩总和为"+j);
      }
    }
